home *** CD-ROM | disk | FTP | other *** search
- Path: walt.tsc.com!not-for-mail
- From: billr@elmer.tsc.com (Bill Roberts)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: x ^= y ^= x ^= y;
- Date: 2 Mar 1996 19:25:01 -0500
- Organization: Technology Service Corporation
- Sender: Bill Roberts
- Message-ID: <4haost$6kt@elmer.tsc.com>
- References: <4glcf7$eou@wn1.sci.kun.nl> <972.6628T1080T1212@cs.ruu.nl> <4h4ta6$ivf@elmer.tsc.com> <1547.6634T1001T2383@cs.ruu.nl>
- NNTP-Posting-Host: elmer.tsc.com
-
- In article <1547.6634T1001T2383@cs.ruu.nl>,
- Wessel Dankers <wsldanke@cs.ruu.nl> wrote:
- <snip most of the discussion that lead to this point. Check
- back in the thread if you want to see how we got here>
- >That's the first sensible thing I see. It doesn't help if one mumbles things
- >about "sequence points": although they are the right words they don't explain
- >anything.
- >
- Most language standards are written like the laws passed by Congress.
- Lots of words to hide what is trying to be said. That is why people
- who argue about things like this are called "language lawyers." For
- those who are interested, the semi-colon that ends a statement is a
- "sequence point." That means that everything to the left has been
- completed. The comma operator is the same thing, so we could also
- write the original problem as
- x ^= y, y ^= x, x ^= y;
- and it is one statement.
-
-